package com.atguigu.eduservice;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author wangdan
 * @version 1.0
 * @date 2020/5/6 16:34
 */
@SpringBootApplication
//08-尚硅谷-谷粒学院-后台项目管理模块-整合swagger 14'
@ComponentScan(basePackages = {"com.atguigu"})//如果不加该注解，默认只扫描当前项目包；加上该注解并在pom中添加依赖，就会扫描另一个项目中下的包
@EnableDiscoveryClient //nacos注册
@EnableFeignClients
public class EduApplication {

    public static void main(String[] args) {
        SpringApplication.run(EduApplication.class,args);
    }
}
